1 /*
2 
3 Boost Software License - Version 1.0 - August 17th, 2003
4 
5 Permission is hereby granted, free of charge, to any person or organization
6 obtaining a copy of the software and accompanying documentation covered by
7 this license (the "Software") to use, reproduce, display, distribute,
8 execute, and transmit the Software, and to prepare derivative works of the
9 Software, and to permit third-parties to whom the Software is furnished to
10 do so, all subject to the following:
11 
12 The copyright notices in the Software and this entire statement, including
13 the above license grant, this restriction and the following disclaimer,
14 must be included in all copies of the Software, in whole or in part, and
15 all derivative works of the Software, unless such copies or derivative
16 works are solely in the form of machine-executable object code generated by
17 a source language processor.
18 
19 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
22 SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
23 FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
24 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25 DEALINGS IN THE SOFTWARE.
26 
27 */ 
28 
29 module derelict.glib.gstringchunk;
30 
31 import derelict.glib.gtypes;
32 import derelict.glib.glibconfig;
33 import core.stdc.config;
34 
35 extern (C):
36 
37 alias _GStringChunk GStringChunk;
38 
39 struct _GStringChunk;
40 
41 
42 version(Derelict_Link_Static)
43 {
44     extern( C ) nothrow 
45     {
46         GStringChunk* g_string_chunk_new(gsize size);
47         void g_string_chunk_free(GStringChunk* chunk);
48         void g_string_chunk_clear(GStringChunk* chunk);
49         gchar* g_string_chunk_insert(GStringChunk* chunk, const(gchar)* string);
50         gchar* g_string_chunk_insert_len(GStringChunk* chunk, const(gchar)* string, gssize len);
51         gchar* g_string_chunk_insert_const(GStringChunk* chunk, const(gchar)* string);
52     }
53 }
54 else
55 {
56     extern( C ) nothrow 
57     {
58         alias da_g_string_chunk_new = GStringChunk* function(gsize size);													
59         alias da_g_string_chunk_free = void function(GStringChunk* chunk);													
60         alias da_g_string_chunk_clear = void function(GStringChunk* chunk);													
61         alias da_g_string_chunk_insert = gchar* function(GStringChunk* chunk, const(gchar)* string);						
62         alias da_g_string_chunk_insert_len = gchar* function(GStringChunk* chunk, const(gchar)* string, gssize len);		
63         alias da_g_string_chunk_insert_const = gchar* function(GStringChunk* chunk, const(gchar)* string);					
64     }
65 
66     __gshared
67     {
68         da_g_string_chunk_new g_string_chunk_new; 
69         da_g_string_chunk_free g_string_chunk_free; 
70         da_g_string_chunk_clear g_string_chunk_clear; 
71         da_g_string_chunk_insert g_string_chunk_insert; 
72         da_g_string_chunk_insert_len g_string_chunk_insert_len; 
73         da_g_string_chunk_insert_const g_string_chunk_insert_const; 
74     }
75 }